]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
4 years agostatus/bluetooth: Clear list of connected signals on adapter changes
Jonas Dreßler [Thu, 24 Feb 2022 18:35:06 +0000 (19:35 +0100)]
status/bluetooth: Clear list of connected signals on adapter changes

With the porting of gnome-bluetooth to the new GListModel API the
behavior regarding removing adapters changed: It now no longer
guarantees to emit "device-removed" signals for the paired devices when
the adapter gets removed.

This means we need to do that ourselves now, so clear the list of
connected signals when the default adapter changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2214>

4 years agoRevert "status/bluetooth: Bail out and hide UI when there's no adapter"
Jonas Dreßler [Thu, 24 Feb 2022 17:57:22 +0000 (18:57 +0100)]
Revert "status/bluetooth: Bail out and hide UI when there's no adapter"

Turns out this broke showing the bluetooth menu entry for adapters which
rely on the had-devices-setup property being set while turned off. These
adapters are completely removed from the system by the firmware after
powering them off, so in that case there is no default adapter anymore,
although we still want to show the menu.

This reverts commit aaf47167b5bb2a4ac15e2cdfdfcac71498dcd7c7.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2214>

4 years agoUpdate Slovak translation
Dušan Kazik [Fri, 25 Feb 2022 07:41:58 +0000 (07:41 +0000)]
Update Slovak translation

4 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 24 Feb 2022 11:53:07 +0000 (12:53 +0100)]
Updated Spanish translation

4 years agooverview: Don't expect time argument from drag-end signal
Jonas Dreßler [Wed, 23 Feb 2022 15:23:02 +0000 (16:23 +0100)]
overview: Don't expect time argument from drag-end signal

We actually don't get a time from the xdndHandler when it emits
drag-end, so we fail right now when calling
workspaceManager.get_workspace_by_index(time).

Fix it by getting the time ourselves instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2211>

4 years agoworkspaceAnimation: Fix warning on restacking
Florian Müllner [Tue, 22 Feb 2022 20:16:52 +0000 (21:16 +0100)]
workspaceAnimation: Fix warning on restacking

Only workspace groups that are associated with a workspace have a
background. As a result, when restacking window previews we end up
passing `undefined` to clutter_actor_set_child_above_sibling()
instead of null, triggering a warning.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2209>

4 years agocleanup: Use new indentation style for object literals
Florian Müllner [Sun, 29 Mar 2020 21:51:13 +0000 (23:51 +0200)]
cleanup: Use new indentation style for object literals

We have made good progress on object literals as well, although there
are still a lot that use the old style, given how ubiquitous object
literals are.

But the needed reindentation isn't overly intrusive, as changes are
limited to the object literals themselves (i.e. they don't affect
surrounding code).

And given that object literals account for quite a bit of the remaining
differences between regular and legacy rules, doing the transition now
is still worthwhile.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>

4 years agocleanup: Use new indentation style for arrays
Florian Müllner [Fri, 27 Mar 2020 13:18:34 +0000 (14:18 +0100)]
cleanup: Use new indentation style for arrays

We've made some progress on transitioning to the modern indentation
style, and for arrays the legacy style is now rare enough to make
a bulk transition feasible.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>

4 years agocleanup: Stop using string concatenation
Florian Müllner [Tue, 24 Mar 2020 04:02:20 +0000 (05:02 +0100)]
cleanup: Stop using string concatenation

It's unfortunate that we cannot fully embrace template strings, but
we aren't limited to "legacy" formatting either; replace the last
remaining places where we still use string concatenation to reduce
the difference between regular and legacy style a bit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>

4 years agostatus/network: Show disabled icon when bluetooth cellular is disabled
Jonas Dreßler [Mon, 21 Feb 2022 12:39:17 +0000 (13:39 +0100)]
status/network: Show disabled icon when bluetooth cellular is disabled

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

4 years agostatus/network: Show vpn-disabled icon when vpn is disabled
Jonas Dreßler [Fri, 18 Feb 2022 20:45:26 +0000 (21:45 +0100)]
status/network: Show vpn-disabled icon when vpn is disabled

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

4 years agostatus/network: Show cellular-disabled icon when cellular is disabled
Jonas Dreßler [Fri, 18 Feb 2022 20:14:46 +0000 (21:14 +0100)]
status/network: Show cellular-disabled icon when cellular is disabled

We also have this icon, so let's use it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

4 years agostatus/bluetooth: Show bluetooth-disabled icon when disabled
Jonas Dreßler [Fri, 18 Feb 2022 20:02:20 +0000 (21:02 +0100)]
status/bluetooth: Show bluetooth-disabled icon when disabled

We have an icon for this, so let's actually use it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

4 years agostatus/network: Show wireless-disabled icon when wifi is disabled
Jonas Dreßler [Fri, 18 Feb 2022 20:01:17 +0000 (21:01 +0100)]
status/network: Show wireless-disabled icon when wifi is disabled

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

4 years agotheme: Minor fixes from the 42 beta
Sam Hewitt [Mon, 21 Feb 2022 19:21:53 +0000 (15:51 -0330)]
theme: Minor fixes from the 42 beta

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2206>

4 years agobuild: Bump some dependency versions
Florian Müllner [Mon, 14 Feb 2022 22:37:03 +0000 (23:37 +0100)]
build: Bump some dependency versions

Mutter and gnome-shell are released in lock-step, but I forgot to
bump the requirement accordingly.

Likewise the gsettings-desktop-schemas dependency is outdated, there
are a couple of keys we depend on that were added this cycle.

And while building should still be possible with the old gjs version,
we do require a newer version at runtime, so reflect that as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2183>

4 years agost/theme-node: Add missing precondition checks
Florian Müllner [Tue, 22 Feb 2022 10:32:26 +0000 (11:32 +0100)]
st/theme-node: Add missing precondition checks

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4851

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2207>

4 years agoUpdate Persian translation
Danial Behzadi [Mon, 21 Feb 2022 18:47:36 +0000 (18:47 +0000)]
Update Persian translation

4 years agoworkspacesView: Add Home and End keys for workspace navigation
kyte [Mon, 21 Feb 2022 14:36:50 +0000 (20:06 +0530)]
workspacesView: Add Home and End keys for workspace navigation

This commit adds support for Home and End keys to move
to the first and last workspace respectively.
Previously only Page_Up and Page_Down were recognized
to move one workspace at a time in overview mode.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2201>

4 years agodateMenu: Don't manipulate passed events
Björn Daase [Tue, 15 Feb 2022 10:21:48 +0000 (11:21 +0100)]
dateMenu: Don't manipulate passed events

The event passed to formatEventTime() is reused at a later point.
Therefore, we are not allowed to manipulate the event directly.
This fixes an issue where the user clicks on a multi-day all-day event
the second time before the event gets garbage collected and the event
then is one day shorter.

Fixes 528ee01fef6e5ca2303fc766be29a854d8ee928b

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2184>

4 years agonetwork: Get dbus path from NMDevice
Xiaoguang Wang [Mon, 21 Feb 2022 01:11:23 +0000 (09:11 +0800)]
network: Get dbus path from NMDevice

In the NetworkManager new version the NMDevice.get_path returns pci
path, we need to use NM prototype to get device dbus path.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4565

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2194>

4 years agoworkspacesView: Disable workspace switching while in search
Sebastian Keller [Sun, 20 Feb 2022 15:53:43 +0000 (16:53 +0100)]
workspacesView: Disable workspace switching while in search

WorkspacesDisplay connects to key-press-event on the stage to switch
workspaces when page up or down is pressed and nothing else intercepts
these keys. This means that it is still possible to switch workspaces
while they are hidden behind the search.

So only allow these keybinding while the WorkspacesDisplay is reactive
which gets updated by ControlsManager depending on whether there is an
active search or not. Also set it as initially reactive, because
otherwise the keybindings would only work after performing an initial
search.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2204>

4 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 20 Feb 2022 13:24:31 +0000 (15:24 +0200)]
Updated Lithuanian translation

4 years agoscreenshot: Update method name in screenshot bind
Ivan Molodetskikh [Sun, 20 Feb 2022 05:54:11 +0000 (08:54 +0300)]
screenshot: Update method name in screenshot bind

I missed it during refactoring. Makes this bind work again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2202>

4 years agoUpdate Persian translation
Danial Behzadi [Sun, 20 Feb 2022 11:47:33 +0000 (11:47 +0000)]
Update Persian translation

4 years agoUpdate Korean translation
Changwoo Ryu [Sat, 19 Feb 2022 13:22:26 +0000 (13:22 +0000)]
Update Korean translation

(cherry picked from commit 96c60d48f720357520e0c9117dfb73dd355bccd1)

4 years agoUpdate Occitan translation
Quentin PAGÈS [Sat, 19 Feb 2022 09:44:50 +0000 (09:44 +0000)]
Update Occitan translation

4 years agoparentalControlsManager: Be less verbose on the logs
Jonas Dreßler [Fri, 18 Feb 2022 13:13:59 +0000 (14:13 +0100)]
parentalControlsManager: Be less verbose on the logs

There's a few things that are really unncessary to log without any
debugging enabled, for example "Getting parental controls for user", so
remove that.

Other things can be useful, so use console.debug() to log those.

Especially the warning in showAppInfo() we don't want log by default as
it spills tons of messages during shell startup (the async
initialization of the malcontent manager takes some time).

While at it, also make the !HAVE_MALCONTENT message a bit more accurate.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2196>

4 years agodateMenu: Get interval for the right timezone
Jonas Dreßler [Fri, 18 Feb 2022 13:26:23 +0000 (14:26 +0100)]
dateMenu: Get interval for the right timezone

We're calling get_interval on tzA right now for both the tzA and tzB,
this causes a critical error during shell startup:

g_time_zone_get_offset: assertion 'interval_valid (tz, (guint)interval)' failed

Fix this and use tzB to get the offset for timezone b.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2195>

4 years agostatus/bluetooth: Bail out and hide UI when there's no adapter
Jonas Dreßler [Mon, 31 Jan 2022 22:40:39 +0000 (23:40 +0100)]
status/bluetooth: Bail out and hide UI when there's no adapter

While _sync() does already handle the case where there's no adapter just
fine (hiding the item and the indicator), let's make the handling a bit
more obvious and add an explicit check for !this._adapter where we bail
out and hide the UI.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2188>

4 years agostatus/bluetooth: Use BlueZ state to determine whether bluetooth is on
Jonas Dreßler [Tue, 18 Jan 2022 10:14:47 +0000 (11:14 +0100)]
status/bluetooth: Use BlueZ state to determine whether bluetooth is on

There's two ways bluetooth can be powered off/on for us: One way is to
go via airplane mode (which uses rfkill), and the second way is to tell
BlueZ to turn off the device. Now rfkill always has the final say on
whether bluetooth is off, BlueZ OTOH has the final say on whether
bluetooth is on.

This means when we want to know whether bluetooth is turned on, we only
have to ask BlueZ, so simply read this._client.default_adapter_powered
for that.

For turning bluetooth on or off we use rfkill, but when turning it on,
make sure it's turned on in Bluez, too.

FTR, this is exactly the same way the Bluetooth panel in Settings
handles this.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2188>

4 years agostatus/bluetooth: Use JS Set for tracking signal connections
Jonas Dreßler [Thu, 2 Dec 2021 10:44:47 +0000 (11:44 +0100)]
status/bluetooth: Use JS Set for tracking signal connections

We can make things a bit fancier here and use a JS Set instead of an
object for tracking which devices we're having a signal handler
connected to.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2188>

4 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 18 Feb 2022 11:33:32 +0000 (11:33 +0000)]
Update Turkish translation

4 years agoUpdate Catalan translation
Jordi Mas [Fri, 18 Feb 2022 06:35:01 +0000 (07:35 +0100)]
Update Catalan translation

4 years agoUpdate Indonesian translation
Kukuh Syafaat [Fri, 18 Feb 2022 02:07:40 +0000 (02:07 +0000)]
Update Indonesian translation

4 years agoscreenshot: Make screencast area indicator hidden from pick
Ivan Molodetskikh [Thu, 17 Feb 2022 06:05:10 +0000 (09:05 +0300)]
screenshot: Make screencast area indicator hidden from pick

It's a non-reactive actor on top of most of the stage. Set it as hidden
from pick so it doesn't break in-Shell DnD.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5083

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2192>

4 years agoUpdate Basque translation
Asier Sarasua Garmendia [Wed, 16 Feb 2022 20:47:41 +0000 (20:47 +0000)]
Update Basque translation

4 years agost/scroll-view: Don't queue redraw in update_fade_effect()
Jonas Dreßler [Wed, 16 Feb 2022 12:07:34 +0000 (13:07 +0100)]
st/scroll-view: Don't queue redraw in update_fade_effect()

ClutterEffects are responsible for queueing redraws when their
properties change (and StScrollViewFade is a good citizen already), also
Clutter itself should queue a redraw when adding/removing an effect.

Users of Clutter should never have to queue redraws themselves (unless
they're implementing a custom ClutterEffect or ClutterContent), so don't
queue a redraw here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2189>

4 years agost/scroll-view: Only update fade effect on CSS changes if CSS sets it
Jonas Dreßler [Wed, 16 Feb 2022 11:56:49 +0000 (12:56 +0100)]
st/scroll-view: Only update fade effect on CSS changes if CSS sets it

The fade effect can also be added to the scroll view programatically
instead of using CSS via the st_scroll_view_update_fade_effect() API.

We make use of this API in the appDisplay, but since commit ba547ec1d
the fade margins get overridden to 0.0 from the ::style-changed handler.
Fix this by only setting the fade margins when CSS actually defines a
custom vfade/hfade offset.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5079
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2189>

4 years agodash: Subtract vertical margins from availHeight
Jonas Dreßler [Wed, 16 Feb 2022 19:04:03 +0000 (20:04 +0100)]
dash: Subtract vertical margins from availHeight

The vertical margins are part of this._maxHeight, so we need to subtract
it in order to propery limit icon sizes when the available height is too
small.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2191>

4 years agooverviewControls: Factor in margin-bottom for dash startup animation
Jonas Dreßler [Wed, 16 Feb 2022 19:02:48 +0000 (20:02 +0100)]
overviewControls: Factor in margin-bottom for dash startup animation

We set a margin-bottom on the dash to give it some margin towards the
monitor edge, we need to factor in this margin when moving it outside of
the monitor for our animation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2191>

4 years agoUpdate Occitan translation
Quentin PAGÈS [Wed, 16 Feb 2022 18:08:24 +0000 (18:08 +0000)]
Update Occitan translation

4 years agoUpdate Catalan translation
Jordi Mas [Wed, 16 Feb 2022 05:13:21 +0000 (06:13 +0100)]
Update Catalan translation

4 years agoBump version to 42.beta
Florian Müllner [Mon, 14 Feb 2022 20:07:17 +0000 (21:07 +0100)]
Bump version to 42.beta

Update NEWS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2182>

4 years agotheme: Stylesheet papercuts and other visual fixes
Sam Hewitt [Mon, 7 Feb 2022 18:22:40 +0000 (14:52 -0330)]
theme: Stylesheet papercuts and other visual fixes

- remove tiled preview corners; merge with misc.scss
- sync general label styles from libadwaita
- use variables in ibus css
- remove redundant spacing variable as its equal to padding
- use more global styles in screenshot css
- tidy up entry styles
- cleanup the networks dialog stylesheet
- make colours less dark
- cleanup the popover stylesheet
- cleanup the mixins for tiles and overview icons
- adjust the button style definitions on checked style
- add osd button definitions

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2172>

4 years agoboxpointer: Make drawing arrow background optional
Florian Müllner [Sat, 12 Feb 2022 15:58:06 +0000 (16:58 +0100)]
boxpointer: Make drawing arrow background optional

We currently use get_color(), which assumes the color exists in the
stylesheet (and prints a warning if it doesn't).

Switch to lookup_color() and skip filling the background if no
such colors exits.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2172>

4 years agoUpdate Hebrew translation
Yosef Or Boczko [Mon, 14 Feb 2022 14:58:15 +0000 (14:58 +0000)]
Update Hebrew translation

4 years agost/widget: Emit "style-changed" on all theme changes
Jonas Dreßler [Sun, 17 Nov 2019 23:44:36 +0000 (00:44 +0100)]
st/widget: Emit "style-changed" on all theme changes

Since now the resource consumption of the "style-changed" signal
handlers should be significantly lower, we can start emitting the signal
in all cases again as it was originally intended. This fixes some small
visual issues, like the battery percentage in the panel only being shown
on hover or updating the size of StIcons on scale-factor changes.

This effectively reverts f74c07b9acbdc6945ca37f86bc680701f048f174

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1708

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2099>

4 years agocalendar: Fix xgettext comment for calendar date format
Marek Černocký [Mon, 14 Feb 2022 09:18:52 +0000 (10:18 +0100)]
calendar: Fix xgettext comment for calendar date format

Gettext comments must be right next to the line with the extracted text,
otherwise they aren't included in pot/po file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2179>

4 years agoUpdate Portuguese translation
Hugo Carvalho [Mon, 14 Feb 2022 13:09:44 +0000 (13:09 +0000)]
Update Portuguese translation

4 years agost/label: Compare shadow spec before invalidating shadow on style change
Jonas Dreßler [Fri, 5 Mar 2021 11:49:36 +0000 (12:49 +0100)]
st/label: Compare shadow spec before invalidating shadow on style change

Just like with the last commit for StEntry, check whether the text
shadow actually changed before invalidating the pipeline on style
changes of StLabel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Compare shadow spec before invalidating shadow on style change
Jonas Dreßler [Fri, 5 Mar 2021 11:35:26 +0000 (12:35 +0100)]
st/entry: Compare shadow spec before invalidating shadow on style change

Instead of doing a lot of useless work every time we receive the
style-changed signal, only invalidate our text shadow pipeline in case
the shadow actually changed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/shadow: Add a fast path to comparisons
Jonas Dreßler [Fri, 5 Mar 2021 11:28:39 +0000 (12:28 +0100)]
st/shadow: Add a fast path to comparisons

We do this in most places in St, it's consistent to do it here, too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/label: Invalidate text shadow on style changes to ClutterText
Jonas Dreßler [Fri, 5 Mar 2021 11:46:00 +0000 (12:46 +0100)]
st/label: Invalidate text shadow on style changes to ClutterText

Just like with the last commit, listen to some ClutterText property
changes to catch style changes that were trigerred by
_st_set_text_from_style() and invalidate the shadow spec on changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Invalidate text shadow on style changes to ClutterText
Jonas Dreßler [Fri, 5 Mar 2021 11:17:07 +0000 (12:17 +0100)]
st/entry: Invalidate text shadow on style changes to ClutterText

We update a few properties of ClutterText when the CSS changes via
_st_set_text_from_style() (which we call when receiving the
style-changed signal).

Right now we simply invalidate the text shadow every time we receive the
style-changed signal, but we're going to change that with the next
commits. To ensure the shadow still gets invalidated on CSS changed that
might affect the shadow, listen to a bunch of property changes that will
get notified when any property that affects the shadow changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Invalidate shadow on cursor position/size changes
Jonas Dreßler [Fri, 5 Mar 2021 10:31:26 +0000 (11:31 +0100)]
st/entry: Invalidate shadow on cursor position/size changes

When text shadows are used, the cursor indicating the current position
also casts a shadow.

This means we have to regenerate the shadow texture after the cursor
position changed, so invalidate the shadow in that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agoUpdate Slovenian translation
Matej Urbančič [Sun, 13 Feb 2022 16:46:28 +0000 (16:46 +0000)]
Update Slovenian translation

4 years agoUpdate Chinese (China) translation
Luming Zh [Sun, 13 Feb 2022 16:44:22 +0000 (16:44 +0000)]
Update Chinese (China) translation

4 years agoUpdate Russian translation
Aleksandr Melman [Sun, 13 Feb 2022 16:32:38 +0000 (16:32 +0000)]
Update Russian translation

4 years agopopupMenu: Avoid open state reentrancy in dummy menus
Carlos Garnacho [Sun, 13 Feb 2022 13:05:41 +0000 (14:05 +0100)]
popupMenu: Avoid open state reentrancy in dummy menus

Dummy menus may emit ::open-state-changed multiple times for
the same state. Avoid doing that so that the PopupMenuManager
is happy not having to handle reentrancy.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5064
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2178>

4 years agoshell: Shuffle ifdef to fix !HAVE_SYSTEMD build
Carlos Garnacho [Sun, 13 Feb 2022 09:56:28 +0000 (10:56 +0100)]
shell: Shuffle ifdef to fix !HAVE_SYSTEMD build

The internal SystemdFlags enum is used from common code for
both systemd availability cases. Shuffle it outside the ifdef
so it's seen everywhere.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2177>

4 years agoUpdate Bulgarian translation
Alexander Shopov [Sun, 13 Feb 2022 10:37:09 +0000 (10:37 +0000)]
Update Bulgarian translation

4 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 13 Feb 2022 09:13:41 +0000 (09:13 +0000)]
Update Basque translation

4 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sun, 13 Feb 2022 00:50:05 +0000 (00:50 +0000)]
Update Brazilian Portuguese translation

4 years agoUpdated Czech translation
Marek Černocký [Sat, 12 Feb 2022 22:15:15 +0000 (23:15 +0100)]
Updated Czech translation

4 years agoUpdated Czech translation
Marek Černocký [Sat, 12 Feb 2022 22:11:20 +0000 (23:11 +0100)]
Updated Czech translation

4 years agoUpdate Galician translation
Fran Dieguez [Sat, 12 Feb 2022 20:34:25 +0000 (20:34 +0000)]
Update Galician translation

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 12 Feb 2022 16:27:42 +0000 (16:27 +0000)]
Update Ukrainian translation

4 years agoworkspaceSwitcherPopup: Implement new OSD design
Florian Müllner [Wed, 26 Jan 2022 00:33:21 +0000 (01:33 +0100)]
workspaceSwitcherPopup: Implement new OSD design

Move the popup to the bottom and represent workspaces as small dots
instead of as scaled down representations of the work area.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/152

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoworkspaceSwitcherPopup: Fix fading in
Florian Müllner [Wed, 26 Jan 2022 00:43:15 +0000 (01:43 +0100)]
workspaceSwitcherPopup: Fix fading in

The popover is supposed to fade in, but that's currently
broken because:

 - we already start at full opacity
 - Clutter skips transitions while unmapped

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoworkspaceSwitcherPopup: Drop direction parameter
Florian Müllner [Wed, 26 Jan 2022 00:26:44 +0000 (01:26 +0100)]
workspaceSwitcherPopup: Drop direction parameter

The original popup included arrows that indicated the direction of
the switch. We stopped doing that a long time ago, and ever since
the popup has only indicated active vs. non-active workspaces.

Simplify both the API and style to reflect that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoosdWindow: Implement new OSD design
Florian Müllner [Tue, 25 Jan 2022 22:15:52 +0000 (23:15 +0100)]
osdWindow: Implement new OSD design

Switch to a horizontal layout, use smaller icons and move
the OSD to the bottom of the screen.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/152

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoosdWindow: Don't inherit from St.Widget
Florian Müllner [Tue, 25 Jan 2022 19:31:07 +0000 (20:31 +0100)]
osdWindow: Don't inherit from St.Widget

We don't apply any styling to the toplevel OSD actor, so we can just
as well avoid the style machinery and use a plain actor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoextensions-app: Update screenshots with the latest design
Romain Vigier [Sat, 22 Jan 2022 15:48:16 +0000 (16:48 +0100)]
extensions-app: Update screenshots with the latest design

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Update authors list
Romain Vigier [Tue, 18 Jan 2022 12:24:21 +0000 (13:24 +0100)]
extensions-app: Update authors list

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Enable/disable an extension by activating the row
Romain Vigier [Tue, 18 Jan 2022 12:04:55 +0000 (13:04 +0100)]
extensions-app: Enable/disable an extension by activating the row

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Remove extension row revealer
Romain Vigier [Tue, 18 Jan 2022 12:00:03 +0000 (13:00 +0100)]
extensions-app: Remove extension row revealer

Make all the actions (open website, open preferences, remove extension) and
information (description, version number) readily available.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Change lists style class to `.boxed-list`
Romain Vigier [Tue, 18 Jan 2022 10:37:51 +0000 (11:37 +0100)]
extensions-app: Change lists style class to `.boxed-list`

The previous `.content` style class is deprecated.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Move headerbar content to the main view
Romain Vigier [Tue, 18 Jan 2022 10:19:54 +0000 (11:19 +0100)]
extensions-app: Move headerbar content to the main view

With the new borderless style of libadwaita, the global switch in the headerbar
did not look good. Moving it to the main view is the opportunity to also move
the content of the information popover.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agostatus/remote-access: Don't show recording icon for screenshot UI casts
Ivan Molodetskikh [Wed, 9 Feb 2022 07:00:07 +0000 (10:00 +0300)]
status/remote-access: Don't show recording icon for screenshot UI casts

If there's only a single recording and it is the screenshot UI
recording, don't show the icon, because it's already displayed by the
new panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agostatus/remote-access: Remove menu for stopping screencasts
Ivan Molodetskikh [Wed, 9 Feb 2022 06:59:03 +0000 (09:59 +0300)]
status/remote-access: Remove menu for stopping screencasts

It is now handled by a dedicated panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agopanel: Add a screen recording indicator
Ivan Molodetskikh [Tue, 8 Feb 2022 16:18:01 +0000 (19:18 +0300)]
panel: Add a screen recording indicator

The indicator shows the recording duration and lets the user stop it on
click. It is more discoverable than the stop entry in the aggregate
menu.

The class extends ButtonBox directly rather than Button because Button
does nothing that it uses, and actually causes issues with its dummy
menu (its vfunc_hide() throws an "open-state-changed: Error: incorrect
pop").

The menu-set signal declaration is required by the panel.

The screencast is stopped upon button press in vfunc_event(), which
matches PanelMenu.Button's input handling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agomain: Move screenshotUI initialization earlier
Ivan Molodetskikh [Tue, 8 Feb 2022 16:13:25 +0000 (19:13 +0300)]
main: Move screenshotUI initialization earlier

A new screen recording panel indicator will connect to its signal, so it
needs to be initialized before the panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agoicons: Add stop-symbolic
Ivan Molodetskikh [Tue, 8 Feb 2022 16:12:23 +0000 (19:12 +0300)]
icons: Add stop-symbolic

This is a smaller version of the pre-installed
media-playback-stop-symbolic. It will be used for the screen recording
indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agobackground: Handle errors when loading wallpapers
Alexander Mikhaylenko [Sat, 12 Feb 2022 13:33:51 +0000 (18:33 +0500)]
background: Handle errors when loading wallpapers

Since it happens while setting up the startup animation, we will get stuck
inside that animation and block input if it fails.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5062

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2176>

4 years agoAdd new screenshot UI icons
Ivan Molodetskikh [Wed, 9 Feb 2022 16:55:03 +0000 (19:55 +0300)]
Add new screenshot UI icons

To replace the applets-screenshooter one that was deprecated and isn't
even available on GNOME OS anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2167>

4 years agodateMenu: Replace ellipsis with full sentences
Björn Daase [Mon, 7 Feb 2022 11:24:51 +0000 (12:24 +0100)]
dateMenu: Replace ellipsis with full sentences

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2108>

4 years agojs: Use templates for non-translatable strings
Florian Müllner [Mon, 7 Feb 2022 14:14:06 +0000 (15:14 +0100)]
js: Use templates for non-translatable strings

This reverts commit 9d941f8202125fa and replaces all additional
instances of .format() that have been added since.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agojs: Reindent some code
Florian Müllner [Mon, 7 Feb 2022 15:03:55 +0000 (16:03 +0100)]
js: Reindent some code

... to make sure it conforms to the non-legacy style
before touching it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoci: Stop prohibiting template strings in files with translations
Florian Müllner [Mon, 7 Feb 2022 13:09:13 +0000 (14:09 +0100)]
ci: Stop prohibiting template strings in files with translations

It has been nearly two years since the last regression reported in
https://savannah.gnu.org/bugs/?func=detailitem&item_id=50920 has been
fixed, and no further regressions were reported in the meantime.

It looks therefore safe enough to not restrict ourselves, and start
allowing templates for all non-translatable strings again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoibusManager: Fix version in log message
Florian Müllner [Mon, 7 Feb 2022 14:14:42 +0000 (15:14 +0100)]
ibusManager: Fix version in log message

Whoops, we the log message complaints about minor.minor instead
of minor.micro.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoscreenshot-ui: Add a key to open the screencast UI
Ivan Molodetskikh [Sat, 15 Jan 2022 16:07:15 +0000 (19:07 +0300)]
screenshot-ui: Add a key to open the screencast UI

It replaces the "record a short screencast" key from g-s-d.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Add mode argument to open()
Ivan Molodetskikh [Thu, 3 Feb 2022 19:47:07 +0000 (22:47 +0300)]
screenshot-ui: Add mode argument to open()

In a subsequent commit we will add a function to open the screenshot UI
in the screencast mode. This argument will allow us to do that without
resorting to accessing private fields from the outside.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot: Connect shot/cast toggle with bind_property
Ivan Molodetskikh [Sat, 12 Feb 2022 07:21:37 +0000 (10:21 +0300)]
screenshot: Connect shot/cast toggle with bind_property

This way we don't need to uncheck the other button manually, and it also
allows switching the mode by setting the other button's checked to
false, and not just by setting the target mode's button to true. An
example clean-up can be seen in the "V" key handler.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Add two key bindings from g-s-d
Ivan Molodetskikh [Sat, 15 Jan 2022 16:06:49 +0000 (19:06 +0300)]
screenshot-ui: Add two key bindings from g-s-d

These two are moving into gnome-shell to unify screenshot handling and
allow for same-frame capturing.

While we're at it, move the keybindings .xml file from g-c-c here
because it belongs to gnome-shell.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Extract binding modes
Ivan Molodetskikh [Thu, 3 Feb 2022 19:40:23 +0000 (22:40 +0300)]
screenshot-ui: Extract binding modes

We will re-use the same modes for more bindings in subsequent commits.
Also, while we're at it, invert the modes, to emphasize where the
screenshot UI cannot be used, rather than where it can be used.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoci: Include .ui files in POTFILES check
Florian Müllner [Thu, 10 Feb 2022 17:18:34 +0000 (18:18 +0100)]
ci: Include .ui files in POTFILES check

As the previous commit shows, just checking source files isn't
enough. Extending the existing check to .ui files should make
sure that we catch that kind of breakage in the future before
it hits translators.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2173>

4 years agopo: Update POTFILES.in
Florian Müllner [Thu, 10 Feb 2022 17:24:23 +0000 (18:24 +0100)]
po: Update POTFILES.in

Commit ae92c1c4eb07ea shuffled GTK templates around, without
reflecting the change in POTFILES.in.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2173>

4 years agowindowMenu: Add an entry to take a screenshot
Ivan Molodetskikh [Fri, 27 Aug 2021 16:17:46 +0000 (19:17 +0300)]
windowMenu: Add an entry to take a screenshot

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2105>

4 years agoscreenshot: Make captureScreenshot async
Ivan Molodetskikh [Wed, 9 Feb 2022 11:31:31 +0000 (14:31 +0300)]
screenshot: Make captureScreenshot async

Now that it's split out and has no implicit arguments we can convert it
to be a proper async function.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2105>